<template>
  <div>
    <input type="text" v-model="obj.name" />
    <input type="number" v-model="obj.age" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      obj: {
        name: "jack",
        age: 20,
      },
    };
  },
  watch: {
    "obj.name"() {
      console.log(123);
    },
    "obj.age"() {
      console.log(456);
    },
  },
};
</script>

<style>
</style>